home *** CD-ROM | disk | FTP | other *** search
/ The AGA Experience 3 / AGA Experience Volume 3 (1997)(NFA - SAdENESS)[!].iso / software / utilities / programmers / opussdk / amigaguide / dopus / notify.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-07  |  4.4 KB  |  97 lines

  1. @DATABASE "dopus/notify.h"
  2. @MASTER   "opussdk:include/dopus/notify.h"
  3. @REMARK   (c) Dr Greg Perry and Jonathan Potter, GPSoftware 1996
  4. @REMARK   This file was initially created by ADtoHT 2.1 on 07-Sep-96 18:20:14
  5. @REMARK   ADtoHT is © 1993-1995 Christian Stieber
  6.  
  7. @NODE MAIN "dopus/notify.h"
  8. @TOC "DopusSDK/MAIN"
  9.  
  10. @{"dopus/notify.h" LINK File}
  11.  
  12.  
  13. @{b}Typedefs@{ub}
  14.  
  15. @{"DOpusNotify" LINK "dopus/notify.h/File" 11}
  16.  
  17.  
  18. @{b}#defines@{ub}
  19.  
  20. @{"DN_APP_ICON_LIST" LINK "dopus/notify.h/File" 27}     @{"DN_APP_MENU_LIST" LINK "dopus/notify.h/File" 28}
  21. @{"DN_CLOSE_WORKBENCH" LINK "dopus/notify.h/File" 29}   @{"DN_DISKCHANGE" LINK "dopus/notify.h/File" 32}
  22. @{"DN_DOS_ACTION" LINK "dopus/notify.h/File" 37}        @{"DN_OPEN_WORKBENCH" LINK "dopus/notify.h/File" 30}
  23. @{"DN_OPUS_HIDE" LINK "dopus/notify.h/File" 34}         @{"DN_OPUS_QUIT" LINK "dopus/notify.h/File" 33}
  24. @{"DN_OPUS_SHOW" LINK "dopus/notify.h/File" 35}         @{"DN_OPUS_START" LINK "dopus/notify.h/File" 36}
  25. @{"DN_RESET_WORKBENCH" LINK "dopus/notify.h/File" 31}   @{"DN_REXX_UP" LINK "dopus/notify.h/File" 38}
  26. @{"DN_WRITE_ICON" LINK "dopus/notify.h/File" 26}        @{"DNF_DOS_CLOSE" LINK "dopus/notify.h/File" 52}
  27. @{"DNF_DOS_CREATE" LINK "dopus/notify.h/File" 51}       @{"DNF_DOS_CREATEDIR" LINK "dopus/notify.h/File" 45}
  28. @{"DNF_DOS_DELETEFILE" LINK "dopus/notify.h/File" 46}   @{"DNF_DOS_RELABEL" LINK "dopus/notify.h/File" 53}
  29. @{"DNF_DOS_RENAME" LINK "dopus/notify.h/File" 50}       @{"DNF_DOS_SETCOMMENT" LINK "dopus/notify.h/File" 48}
  30. @{"DNF_DOS_SETFILEDATE" LINK "dopus/notify.h/File" 47}  @{"DNF_DOS_SETPROTECTION" LINK "dopus/notify.h/File" 49}
  31. @{"DNF_ICON_CHANGED" LINK "dopus/notify.h/File" 42}     @{"DNF_ICON_REMOVED" LINK "dopus/notify.h/File" 41}
  32. @{"NT_DOPUS_NOTIFY" LINK "dopus/notify.h/File" 23}      
  33.  
  34. @ENDNODE
  35. @NODE File "dopus/notify.h"
  36. #ifndef _DOPUS_NOTIFY
  37. #define _DOPUS_NOTIFY
  38.  
  39. /*****************************************************************************
  40.  
  41.  Notification
  42.  
  43.  *****************************************************************************/
  44.  
  45. // Notification message
  46. typedef struct
  47.         struct Message          dn_Msg;         // Message header
  48.         ULONG                   dn_Type;        // Type of message
  49.         ULONG                   dn_UserData;    // User-supplied data
  50.         ULONG                   dn_Data;        // Message-specific data
  51.         ULONG                   dn_Flags;       // Flags
  52.         struct FileInfoBlock    *dn_Fib;        // FIB for some messages
  53.         char                    dn_Name[1];     // Name for some messages
  54. } DOpusNotify;
  55.  
  56. // dn_Msg.mn_Node.ln_Type
  57. #define NT_DOPUS_NOTIFY         199
  58.  
  59. // dn_Type
  60. #define DN_WRITE_ICON           (1<<0)          // Icon written
  61. #define DN_APP_ICON_LIST        (1<<1)          // AppIcon added/removed
  62. #define DN_APP_MENU_LIST        (1<<2)          // AppMenu added/removed
  63. #define DN_CLOSE_WORKBENCH      (1<<3)          // Workbench closed
  64. #define DN_OPEN_WORKBENCH       (1<<4)          // Workbench opened
  65. #define DN_RESET_WORKBENCH      (1<<5)          // Workbench reset
  66. #define DN_DISKCHANGE           (1<<6)          // Disk inserted/removed
  67. #define DN_OPUS_QUIT            (1<<7)          // Main program quit
  68. #define DN_OPUS_HIDE            (1<<8)          // Main program hide
  69. #define DN_OPUS_SHOW            (1<<9)          // Main program show
  70. #define DN_OPUS_START           (1<<10)         // Main program start
  71. #define DN_DOS_ACTION           (1<<11)         // DOS action
  72. #define DN_REXX_UP              (1<<12)         // REXX started
  73.  
  74. // Flags with @{"DN_WRITE_ICON" LINK File 26}
  75. #define DNF_ICON_REMOVED        (1<<0)          // Icon removed
  76. #define DNF_ICON_CHANGED        (1<<1)          // Image changed
  77.  
  78. // Flags with @{"DN_DOS_ACTION" LINK File 37}
  79. #define DNF_DOS_CREATEDIR       (1<<0)          // CreateDir
  80. #define DNF_DOS_DELETEFILE      (1<<1)          // DeleteFile
  81. #define DNF_DOS_SETFILEDATE     (1<<2)          // SetFileDate
  82. #define DNF_DOS_SETCOMMENT      (1<<3)          // SetComment
  83. #define DNF_DOS_SETPROTECTION   (1<<4)          // SetProtection
  84. #define DNF_DOS_RENAME          (1<<5)          // Rename
  85. #define DNF_DOS_CREATE          (1<<6)          // Open file (create)
  86. #define DNF_DOS_CLOSE           (1<<7)          // Close file
  87. #define DNF_DOS_RELABEL         (1<<8)          // Relabel disk
  88.  
  89. APTR AddNotifyRequest(ULONG,ULONG,struct MsgPort *);
  90. void RemoveNotifyRequest(APTR);
  91. void ReplyFreeMsg(struct Message *);
  92. void SetNotifyRequest(APTR,ULONG,ULONG);
  93.  
  94.  
  95. #endif
  96. @ENDNODE
  97.